Security News
Combatting Alert Fatigue by Prioritizing Malicious Intent
In 2023, data breaches surged 78% from zero-day and supply chain attacks, but developers are still buried under alerts that are unable to prevent these threats.
nuke-core
Advanced tools
为 Nuke UI Mobile 的所有 UI 组件提供全局基础样式的变量定义, 包括 颜色, 边角, 文本, 边线, 阴影, 动画, 多语言, 以及其他全局变量定义等; 全局 Mixins, Functions, Placeholders; 以及浏览器基础样式重置和全站文本样式声明.
所有 UI 组件也必须引用 nuke-core
作为全局默认的变量使用, 且定义方式, 书写规范也必须和 core 保持一致.
除 theme-xxx
外, 不允许有其他全局公共变量对 @alife/next-core
复写.
$ tnpm ii nuke-core@0.x --save
index.scss
@import "~nuke-core/nuke.scss";
next-core
|- src/
|- util
|- mixins.rxscss
|- functions.rxscss
|- variables/
|- global.rxscss
|- color.rxscss
|- corner.rxscss
|- font.rxscss
|- icon.rxscss
|- line.rxscss
|- shadow.rxscss
nuke.scss // 兼容性配置
nuke.rxscss //
util
全局 Mixins, Functions, Placeholders: mixins
, funcitons
, placeholder
variables
为 Next UI PC 和 Mobile 的所有 UI 组件提供全局基础样式的变量定义, 包括 颜色, 边角, 文本, 边线, 阴影, 动画, 多语言, 以及其他全局变量定义等.color.scss -> $color-n1-1
!default
声明list
或者 map
, 这样便于配置和调用.$corner-sides-base: "base" !default;
$corner-sides-top: "top" !default;
$corner-sides-right: "right" !default;
$corner-sides-bottom: "bottom" !default;
$corner-sides-left: "left" !default;
// right
$btn-size-margin-left: $s1;
//wrong
$btn-size-margin: 0 $s1;
//wrong
$btn-shadow: 1px 1px #333;
依赖配置平台的注释要求注释.(后续添加)
FAQs
nuke 核心变量
The npm package nuke-core receives a total of 14 weekly downloads. As such, nuke-core popularity was classified as not popular.
We found that nuke-core demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
In 2023, data breaches surged 78% from zero-day and supply chain attacks, but developers are still buried under alerts that are unable to prevent these threats.
Security News
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.